home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / SUNWINDOW / SunColorMap.h < prev    next >
C/C++ Source or Header  |  1992-08-26  |  635b  |  31 lines

  1. #ifndef SunColorMap_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define SunColorMap_First
  7.  
  8. #include "WindowColorMap.h"
  9.  
  10. class SunColorMap : public WindowIndexMapper {
  11.     static int cmsno;
  12.     static byte *gamma_map;
  13.  
  14.     char *type, *name;
  15.     int *usecnt;
  16.     
  17.     u_long FindRGB(RGB *rgb);
  18.     u_long FindGray(int gray);
  19. public:
  20.     
  21.     SunColorMap(int d);
  22.     SunColorMap(SunColorMap *from);
  23.     ~SunColorMap();
  24.     void DevInstall(Port *port);
  25.     u_long DevRGB2Index2(RGB *rgb);
  26.     u_long DevAllocateAndSetCell(long id, RGB *rgb, WindowPort*);
  27.     WindowColorMap *DevMakeCopy(WindowColorMap *from);
  28. };
  29.  
  30. #endif
  31.